<template>
<div>
    <van-nav-bar
  left-text="返回"
 
  left-arrow
  @click-left="onClickLeft"
/>
  <van-form @submit="onSubmit">
  <van-field
    v-model="username"
    name="职业"
    label="职业"
    placeholder="您的职业"
    :rules="[{ required: true, message: '请填写您真实的职业' }]"
  />
  
  <div style="margin: 16px;">
    <van-button round block type="info" native-type="submit">提交</van-button>
  </div>
</van-form>
</div>
</template>

<script>
export default {
  data() {
    return {
      username: '',
    
    };
  },
 methods: {
    onSubmit(values) {
      console.log("submit", values);
    },
    onClickLeft() {
      this.$router.go(-1);
    },
    onClickRight() {
      console.log("right");
    },
  },
}
</script>

<style>

</style>